
public class Destination implements Comparable<Destination> {
	
	private String destination;
	private double distance;
	
	public Destination(String destination, double distance) {
		this.destination = destination;
		this.distance = distance;
	}

	public String getDestination() {
		return destination;
	}

	public void setDestination(String destination) {
		this.destination = destination;
	}

	public double getDistance() {
		return distance;
	}

	public void setDistance(double distance) {
		this.distance = distance;
	}

    public int compareTo(Destination otherDestination)
    {
        return destination.compareTo(otherDestination.getDestination());
    }   

}
